package com.woniuxy.entity.dto.operations;

import com.woniuxy.entity.po.operations.Vehicle;
import io.micrometer.core.instrument.binder.BaseUnits;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.util.List;

/**
 * @BelongsProject: charging-management-platform
 * @BelongsPackage: com.woniuxy.entity.dto.operations
 * @Author: Quan
 * @Date: 2025/4/2 15:19
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class VehicleDisplayForClientDetailDTO {
	/**
	 * 车辆 ID，作为主键
	 */
	private Long id;

	/**
	 * 车架号
	 */
	private String vehicleNum;

	/**
	 * 车牌号
	 */
	private String licenseNum;

	/**
	 * 品牌型号
	 */
	private String brandModel;

	/**
	 * 车辆类型：1、纯电；2、混合气电
	 */
	private Integer vehicleType;

	/**
	 * 电池容量，单位为 kwh
	 */
	private Integer batteryCapacity;

	/**
	 * 续航里程，单位为 km
	 */
	private Integer drivingMileage;

	/**
	 * 是否绑定卡
	 */
	private Integer bindCardOrNot;

	public VehicleDisplayForClientDetailDTO(Vehicle vehicle) {
		BeanUtils.copyProperties(vehicle, this);
	}
}
